//路由
const koaRouter = require("@koa/router");

//前缀
const labelRouter = new koaRouter({ prefix: "/label" });

const { create, list } = require("../controller/label_controller");

const { verifyAuth, verifyPermission } = require("../middleware/auth.middleware");

// //创建
labelRouter.post("/", verifyAuth, create);

// 列表
labelRouter.get("/list", verifyAuth, list);

module.exports = labelRouter;
